package com.favccxx.message.domain.message.entity.endpoint;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 消息地址
 */

@Data
@NoArgsConstructor
@Document(collection = "msg_endpoint")
public class MessageEndPoint implements Serializable {

    @Id
    private String id;

    private String code;

    private String name;

    private String url;

    private int port;

    private String username;

    private String password;

    private String version;

    private String type;

    private LocalDateTime createTime;

    @LastModifiedDate
    private LocalDateTime updateTime;

}
